package com.mark.web.data.mapper;

import com.mark.web.data.entity.po.HeadLine;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * @Description: 信息头条dao接口，用于信息头条的数据库操作
 * @Author: Mark
 * @CreateDate: 2018/9/21
 * @Version: 2.0
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Mapper
public interface HeadLineMapper {

    int insert(HeadLine record);

    int insertSelective(HeadLine record);

    int deleteByPrimaryKey(Integer lineId);

    int updateByPrimaryKeySelective(HeadLine record);

    int updateByPrimaryKey(HeadLine record);

    HeadLine selectByPrimaryKey(Integer lineId);

    //后台返回所有的信息头条
    List<HeadLine> selectList();

    //用户返回在线的头条信息
    List<HeadLine> portalGetHeadLineList();

}